problem 53

solved independently