Upgrading the railway line in Portugal