Added structure to store learning data