Added problem 2 and utilities.