bcog -171 solved assignment