changed example (added some method calls)