Added tangent calculation

Added tangent calculation to your project. :)
I'm assuming this as well as the above two lines are not necessary?