started tanh implementation, not working yet