Add learning ability to models