Split example and library into separate projects