Adding solution to karan/Projects convertor in ruby