updated library and new example