Add sample code for library