script to perform different functions written in ruby language