added generate empty list solution