finish a-e of problem 2 of hw02, time to sleep..