Baseball Statistics - code sample