Baseball statistic app, given as an exercise