-Fixed IsSimple method and Generate method