refactoring of examples into usage