updated libary and new example