totally rewrote with a Team class