Add public class snippet