Moved all of the function code from Group.h into Group.cpp