further progress on the extra credit part of assignment 3