homework 4.1 basically complete