The figure shows how to connect a 7400 to obtain a bistable configuration. The circuit must be powered with 5 V.