added schematic diagram as figure