Added NCPC g solution