# -*- coding: utf-8 -*-
"""
Created on Mon Jun  7 15:26:10 2021

@author: Sim
"""
import numpy as np # inherit1.py

class Sums1(object): 
  def __init__(self, x):
    self.n = len(x)
    self.x = np.array(x)
   
  def sum1(self):
    return(np.sum(self.x))
   
  def sum2(self):
    return(np.sum(self.x**2))