completed assignment7