Traverse using yield