Created createStats() method
Converted to createStats() method