updated examples to compile with new changes