Refactor code into separate classes; add avatars table view.