simple calculator to learn how tables and poiters work