add exponentiation for deriv
add deriv example