update the Retrieve.java so that it also display the generated keys