Contract added, sum of squares in deque added