fix gradient example, move examples to build/