Matthew Fontaine Maury (January 14, 1806 - February 1, 1873) was an American astronomer, United States Navy officer, historian, oceanographer, meteorologist, cartographer, author, geologist, and educator. He was nicknamed "Pathfinder of the Seas" and "Father of Modern Oceanography and Naval Meteorology" and later, "Scientist of the Seas" for his extensive works in his books, especially The Physical Geography of the Sea (1855), the first such extensive and comprehensive book on oceanography to be published. Maury made many important new contributions to charting winds and ocean currents, including ocean lanes for passing ships at sea.

Maury was a descendant of the Maury family, a prominent Virginia family of Huguenot ancestry that can be traced back to 15th-century France. His grandfather (the Reverend James Maury) was an inspiring teacher to a future US president, Thomas Jefferson. Maury also had Dutch-American ancestry from the "Minor" family of early Virginia.  He was born in 1806 in Spotsylvania County, Virginia, near Fredericksburg; his parents were Richard Maury and Diane Minor Maury. The family moved to Franklin, Tennessee, when he was five. He wanted to emulate the naval career of his older brother, Flag Lieutenant John Minor Maury, who, however, caught yellow fever after fighting pirates as an officer in the US Navy. As a result of John's painful death, Matthew's father, Richard, forbade him from joining the Navy. Maury strongly considered attending West Point to get a better education than the Navy could offer at that time, but instead, he obtained a naval appointment through the influence of Tennessee Representative Sam Houston, a family friend, in 1825, at the age of 19.  Maury joined the Navy as a midshipman on board the frigate Brandywine which was carrying the Marquis de La Fayette home to France, following La Fayette's famous visit to the United States. Almost immediately, Maury began to study the seas and to record methods of navigation. One of the experiences that piqued this interest was a circumnavigation of the globe on the USS Vincennes, his assigned ship and the first US warship to travel around the world.

Using a quote from the above article, answer the following question: How did he start his career?
he obtained a naval appointment through the influence of Tennessee Representative Sam Houston, a family friend,