var MainController = function ($scope) {

    var model = {
        Name: "Madhur Kapoor",
        Books: [{ Title: "The Hunger Games", isComplete: false },
                { Title: "The Alchemist", isComplete: true },
                { Title: "Angel & Demons", isComplete: false },
                { Title: "Da Vinci Code", isComplete: true },
                { Title: "The Godfather", isComplete: false }
        ]
    };

    $scope.readingList = model;

    $scope.addBook = function () {
        model.Books.push({ Title: $scope.newTitle, isComplete: false });
        $scope.newTitle = '';
    };

};