added java classes for API interaction