assignment10 fixed