Refactored to put initialization of properties inside custom cell class