dynamic library sample