inner classes ex 22 done