Which organ's major function is converting chemical energy into mechanical energy?