Merge pull request #8 from JoelMon/master

Functions that returns something
fixed some syntax. but formatting for function issue got worse
Used slicing to capture the section wanted