add logic class to lib