creating a model and sample data for groups