build basic code