I wrote this program to check the availability of domains to be registered. It also includes an interesting class which allows displaying advertisements.