Separate library from example