inner classes ex 23 done