sending library as an object