Done algorithm.py