input and output devices model