class library: simplify and complete implementation of Size class