Implementing reference construction code