Code for Quant II HW