added example for custom models