gerards first code