lecture notes, prog assign 1