one spelling mistake, and include imports for sample code

one spelling mistake, and include imports for sample code. thanks for this code!