calculator Proc and yield example