adding method get_groups