Modifications from class; refer to notes/memory.