More advanced script example (bind function)