finish basic code layout