add logic class