completed both questions with 100% code coverage