making groups and chapters app. work in progress