much stuck on extra credit part of assignment 3 :(