Base code ready for debugging and testing