add ruby workspace; solve CF339A CF339B CF339C using Ruby.