encapsulate Lib class