some random implementations and programs