Still unfinished on Decreasing function, but rough draft on basic overall function (Unfinished)