pass Line test
hw7 modified