Initated lab5, can read input and write to output