Main function + basics of Plate class.