Refactored util functions into their own file. Started work on Set 2