add clib sample code