Switch to ruby code for examples
Remove duplicate license