added AtBat class