Main class  write last property

*Add Main class  write last property