First revision of the basic library, with example.