passed the first tests for hw3