adding another java file simulating an API layer