summary and example code