add activation function and bp class structure