Solve the problem set

Implemented straighforward functions