deleted ruby code
moved scala code