scripts used as part of my project Quantifying Memory