Implemented team functionality, with all requested features