using object literal for $scope.candidate