added paint examples code