Modified code for one input. Added names to primitive ckt