Licenced codes added by me under GPLv3

Licenced codes added by me under GPLv3.