Update the code for the 'Team' class to pass the test