create logic class