Improve lib examples