Solved problem 44 on PE