Updated tex for cs 1 and 2