algorithm.txt:my initial design for the solution