shrink the code for better presentation
my notes during the javazone