Create Demo1.java

Created a separate file for the Demo function, as its presence caused some confusion.