Copy classes from source input to hint