Added starter code for tracking collection contents and updating views accordingly.