Updated demo1 and added demo two to create a function