Initial implementation of learning example