Finished activation function implementation