Create cell.cpp

New cell code. This has been tested.