class Vector:
    def __init__(self,nums):
        self.nums = nums
        self.dims = len(nums)
        self.norm = self._length()
    
    def __eq__ (self, other):
        return self.nums == other.nums

    def _length(self):
        return sum([c**2 for c in self.nums])**0.5

    def unit_vector(self):
        return Vector([c/self.norm for c in self.nums])

    def scale(self, multiplier):
        return Vector([c * multiplier for c in self.nums])