modified examples to use annotation api