Add getName method to Team interface so you can use the below line