The method of main components