First working version with the extraction of Card Generation Module