Initial import of calculator code