construindo backtrack