finished learn w/ class example