hw5 (missing 8 & 10 )