Just a few example codes in ruby