wrking logic in neater format
returns all daya
Merge pull request #10 from dgoodman1224/final_algorithms

Final algorithms