refactoring, added texture example