added move functions for Class