Worked on code for the second tab.