Create Cosine.java