Fixed some of the structure to problem 1 solution

Moved stuff out of the global level of the file.
Problem 59 solution