Adding function to calculate derivatives
Adding Thresholds.jl