Dynamics of optical bistability: a simple model