My completed code and plots