Implemented derivative method for each functions. Started working on the
test methods.