Reference code for basic extensions