Fixed the code not compiling by removing copy constructors.