I have added the assert statement. Please reivew.