Simple implementation of data input & output