part of assignment 1