class RollingAverage {

    public String toS() {
        // any changes to the formatting will need to be reflected in unit testing
        final StringBuilder sb = new StringBuilder("Rolling Average: Size: " + Math.min(position, size) + "/" + size + " Average: " + average() + "    ");
        for (int i = 0; i < size; i++) {
            sb.append(i);
            sb.append(":");
            sb.append(values[i]);
            sb.append(" ");
        }
        return sb.toString();
    }

    public  RollingAverage(final int size);

}