Implementation of an example from the book "Filthy rich clients"