Changed private field name from 'stackSize' to 'size'.