add more examples; use log properly