Added Stats.java and made the relevant modifications