Editing file as HW6 specifies