Update class to pass the tests