Add size params and __len__ method