started homework #1, got through problem 8