problem 29 - get the caps
problem 30 - compress a sequence