check my first code pls

Would you please at least try to compile your code before re-posting it ?

sketch_dec29a.ino: In function ‘void setup()’:
sketch_dec29a:6: error: ‘serial’ was not declared in this scope

Also, please hit CTRL-T to correct the code indentation.