Implemented and tested unitcell.