A discrete state deterministic system model for analysis of the firm