updated outlook
initial Java example for single dispatch