Partial second homework

all works