hw5 and 6 notes