Added method call and fixed syntax errors
Merge pull request #1 from jake92m/new_feature

Added method call and fixed syntax errors