Constructor for the FSCode Generator