Changed naming convention of functions in problem 3 to conform with PEP
Solved problem 5