copying some of CristiG's code in mine
adding CristiG's files
adding CristiG's files