Home work #3 for 11-791 Design and Engineering of Intelligent Information Systems