Attempt 2 on the Assignment 3