Remove duplicate class
Learn pattern matching, regex and catch exception