Added initial problem 3 solution. still could use some cleanup.