these codes are actually from internet and you can use them according to the license for open source codes