Added observer design pattern example.