used get_melon_attribute function, used dictionary