Assignment 3 for GH 590