Displays periodic table and does some calculation