Program now works w/final2

still need to figure out remainders, and etc from recursive functions