Assignment 2 for GH 590