Applied Assignment 2a patches