Implemented solutions for problems 3.2 and 3.3
Implemented solution for problem 3.4