added CS142 and CS143 code