Wrote test case, fixed syntax and divide by 0 slopes