HW 4 with bugs