redesign assignment7