Making a derivative calculator