Implemented the Master View Controller