updating assignment7