MVC  final code

MVC  final code