First Version Algorith Run Correctly

See #3