edit: added script for finishing problem 9 FTFY