My work exploring the code from Python Algorithms by Magnus Lie Hetland