Scanner example