dfs starter code