Finish innerclass exercise 22