completely overhauled problem 1 scripts