added solution to prob 23