Refined Assignment 6