included other checks
did hw 3 part 3 in grader.js