added checks and grader
hw4