committing calculator example