Working version of Sin()