added the singleton and prototype tutorial example