added learningbydraw function for dmp
tested alpha functions