change examples to use -> as lambda
update examples