Version 1 of the Algorithm