current failed in the last test case
major test case for hw4