Solved problem 46 and 56