Removed duplicate function
Functional style example stuff