Grouping different kinds of clients and returning different attributes