adds new method to build from a custom managed object model