MA final project code snippets and spikes. Handle with care