Add constructor with a Capacity parameter