cell and rule class implementations added.