plotting part 3
3 b,c,d: included plots
4a: state space model