need some help from the expression class for state space analysis