Code fix
Poor try for homework