Adding code to make test pass