Code examples on Ruby