Model for dynamic and thermodynamic properties of YBa2Cu3O7 and Bi2CaSr2Cu2O8