Completed basic math interpreter