Added SharedTabs class. Run the file SharedTabs.java (Shift-F6) to test it.