Changing model to library and examples