Initial code with samples