His interest in space , however , was his primary focus , especially after reading science fiction stories by writers such as H. G. Wells and Edgar Rice Burroughs , which stirred his imagination about life on other planets such as Mars .