Coding samples from classes