Moved pit class to genPit