Ruby exercises in one program