Add custom constructor to Block