I put documentation in my code, explaining each line. I hadn't written code in 12 months, so I had to refresh my previous learning. You have to think logically, unlike computers, which don't think at all! For larger programs, draw a flowchart!