inner classes ex 7 done