Trying to fix code to get 10/10