Your friend must not be a programmer. If he were a programmer, methinks he would just get a sheepdog, and save the 45 minutes.