yClassName('clear')[0];
                
                for(var i=0;i<elements.length;i+=1){
                    if(elements[i].innerHTML === '='){
                            elements[i].addEventListener("click", calculate(i));
                    }else{
                        elements[i].addEventListener("click", addtocurrentvalue(i));
                    }
                }	
            

	
            function addtocurrentvalue (i){
                    return function(){
                