Algarythim draft 1