Fixed input, added output of x1(3) and x0(3), fixed right computation