Added code for week #7.