Created specifications for  function. #2