changed input to statistics class