create a declaredModel containing extra methods