Code for Tech Demo version 1