added main logic class and string processing method