have u written this code for yourself? Have u used it somewhere?