Implement Shader class.