finished first part of assignment