exercise with sin function