worked on problem 4, added file for problem 5