added GetSize() function