- First version of cosine() method.