sum of squares using actors