hw6 p4 edits