Sample code for Introduction to Java