Updated the demos to remove the unneccessary calls to new