java note reusing classes