Move class to define
Class and define work
Separate class and define