Calculator example code