Refactor out Cell class into its own file.