Use __construct in table