createGroup function

Create a user defined group-level object with correct generic functions