[Rebecca] put source code in lib folder (ruby convention)