adding method to return a size of object