"Added slopes and beggining of code for slope handling"