relationships integrated with class $scope