A2 Discrete systems – lecture notes