beginning framework for cell logic