solving problem 45. also, ocd