added some code for npl course