Initial code sketch