add grafic sample

add grafic sample, split engine to files