first chapter code