HW3.3 modified