Example code to implememt new features in Hava 8.