import and refactor attempt
finish input/output string
working analyze