making class for treating texture
add comments