adding aggregate functions support #61