A working implementation of the `sizes` attribute