Fixed infinite recursion
Removed outdated import statement
Pretty print sample output