flow analtics

created a base class for flow analytics