hw4 sample(unfinished)