prob 6 - perfect