Rehabilitation of a dilapidated building in Spain