the diagram for an electronic device