Part 1 - Use proportional feedback to stay away from an obstacle, follow a line.
Part 2 - Line following should detect junctions, script robot to follow arbitrary path.