Implemented PART 1 of Lab 5