William's scripts for IFT6266 project