simple ruby program we could use to properly assign groups