CP 247 Assignment 2