lab 4 homework -- untested