https://ideas.creativecasinoties.com/post/agents-in-60-lines-of-python-part-2-byzi2f