added ruby version
wrapped in main
as a class