solved problem 147!