started implementing top-down contemporaries alg.