cs 387

added cs 387 code