Change calculator example to use new dict syntax for a typeless struct