added assignment7. skipping 5 and 6 because of working with graphics.