Calculator in D