Create Apex class :(Name It as you Like) -> Copy Paste entire Apex code.
Create Lightning Component -> Copy Paste entire component code , don’t forget to change the controller name to your apex , otherwise I am not responsible for the error.
More items.