Add templates to generate protocols for Machine and Human classes