Hey, this is my first exercise

Hound is right, this code needs to be split out to several methods, most likely.