You've posted in the Forum Comments forum which is for issues with these forums themselves. Adobe makes over 100 different pieces of software. If you tell us which piece of Adobe software you're using, a moderator can move your post to the appropriate forum.
HOwever - If you want to build custom models for AEM components - you should look at perhaps at using HTL and Sling Models where you have more more power of creating custom models to meet your business requirements.
Take a look at how the CARD component is built using the WEEKEND tutorial (part 6) -