Adding requirements file.
Working out algorithm