making cell reference code work, refactoring and writing tests