plotting sine and cosine waves.