arithmetic  function exercise