last and size functions passing tests