final demo code base