Basic calculator. Ported from ex12a project for school.