moving classes and functions