Finished with Addaptive break(sandfall). Added Printing of output as function.