finished basic code for intro demo