Can you implement an example in pygame?