CommandFactory class - imlemented.