added java class for testing