implemented team class