Added factory class to get trainer by name