adding teams model code and tests