Code from different languages completed as a reference.