Made eval function defintion