part 4 working

Extra credit is not implemented.