added integer reading and writing example