finished the core and challenging exercise