some simple code to learn java