Code flow prototype