Renamed gates. Added an example