Create library for common functions
Solve problem 1
Solve problem 2
Solve problem 3
Solve problem 4
Solve problem 5