finish basic code