started working on simple backtracking