Assignment 2B Solution