added lab2 java classes
added main method to the startup for lab2
no new changes