code cleaning for respec homework for week1