add regex based version of calculator example.