Creating the Decreasing function (Unfinished)