moved the eval_and_plot function to a dedicated folder
include third-party memoize