lecture 10 and HW5