Added setSize() method