added wire diagram