A really cool script using def