Updated the utils file.
Started and finished problem 43. Might optimize later.