Added the skeleton for the threshold calculation

Did it HOBO STYLE!