added assignment7 with changes