more detailed sine example