Basic Ruby program to learn regex and building a Ruby gem