Added hyperbolic tangent activation function