Part of Assignment 2