Committing my solution for Assignment2