CS162 code for fa13