added a function that builds the team template