Implemented sigmoid activation function