Refactor added group functionality such as group, group_task,and group_complete