Working on java tutorial from http://docs.oracle.com/