Main written ( first version )