Added main methods to all the files.