inner classes ex 24 done