wrote unit tests 1-5