added two additional operations: group by and order by