A7: Added provided code.