solution for moving groups
finished groups tasks