Implemented addToGroup and removeFromGroup