Adding base ruby code