Edited based on professor's comments