comparing chapter code done