added quardatic and cubic regression