finished the first part of the first assignment