added solution to problem 2
added solution to problem 3
added solution to problem 4