simplified input/output class