complete assignment 5
delete rand.m