Example on creating a dynamic library