inner classes ex 9 done