Input finally works!! With output data