The first thing you do when you program is create an alogrithm.