Updated version of java cookbook