added new variable to MyElement class