modularize ruby