Qb model

Initial code