Java Classes for common tasks