expanded example, fixed final newline