ElementWise class implementation
Element wise class