Completed Assignment 2
Updated lock type.