input and output devices class 2