My solution, add time stamp
My script for hw2_1.m. Can be reuseed for hw2_2:)