moved Stats class to namespace EC