A student residence in Fife which has been hailed as the most environmentally friendly in the country has won approval from Chancellor Gordon Brown.
Chancellor Gordon Brown takes a tour of the new halls
Mr Brown was in St Andrews to formally open the £34.7m David Russell Apartments on Friday.
Green features include a rainwater recovery system, a comprehensive recycling programme and high standards of thermal insulation.
The development is enhanced by natural materials and light.
During the official unveiling, Mr Brown said, "I welcome the new state of the art facilities for students, the innovative approach to the design and environmental aspects of the accommodation continues to place the Fife university at the cutting edge of education throughout the world.
"I would congratulate St Andrews University on providing these first class facilities for their students and as someone who campaigned for improved facilities when a student, it lets me see how far universities have come in recognising the importance of providing quality accommodation."
Situated outside the town centre, DRA provides energy efficient accommodation for 920 students and outside term time serves as a three-star alternative for tourists and golfers.
The development was completed in September last year.
In 2006, DRA was the first university residence in the country to be awarded the Green Tourism Business Scheme's Gold Award.
During the visit, Mr Brown dropped in to one of the student apartments and met with the second and third year students who live there.
The David Russell Apartments took three years to build
Following a tour of the facilities and official plaque unveiling, Mr Brown also visited the DRA bistro and met students and university representatives, including leading researchers in fuel cell technology and sustainable accounting.
University principal and vice-chancellor, Dr Brian Lang, said: "We are very pleased to have Gordon Brown here to open David Russell Apartments.
"The development represents the culmination of three years' hard work and a successful partnership between the university and a number of parties."
The development consists of a series of independent buildings clustered around central facilities overlooking a man made lake, which forms part of the sustainable urban drainage scheme.
Uniquely, the building is topped by a grass roof, which acts as a heat insulator during the winter and a natural cooler during the summer months.