Finished problem 23 - fixed bug