Testing Algorithm..