First part of this homework.