exercises with functions