added functions and plots to HW