created groups.topic function skeleton