finished cosine method views