wrote arithmetic analyzer to demo programming style