That's the way it usually works. Sometimes just writing down the problem leads you to the solution for it. That's why, when I do these exercises, I also write down anything that comes to mind about the entire project.
C'=='==============>' the pun is mightier than the sword