add get_element function

Try get_element function under fitting. This is a failed example