Updated Space.all method call to return an array of space objects