cs lecture notes for unit