completed enough for hw2