Finished Observed Pattern, written by me and using also the Java
built-in implementation.