Complted assignment 2.