ex3.27; removed crappy implementation of size()