Symple java observer example