Learning how to make a daemon