wrote a sine function based on taylor series