Wrapping a library