improving memory managment in Encouragement class