Finished most of the stuffs

Standard input and output redirected