define model and block class