week9 p1 modified