A pure geometric approach to stellar structure