Assignment 3 for GH590