added cosine.py