add stats support

Add class for stats