separate class code