completed calculator exercise