Added solution for problem 7
Updated solution 4