An Algebraic Approach To Modelling The Regulation Of Gene Expression