for epicurus , the purpose of philosophy was to attain the happy , tranquil life , characterized by ataraxia `` peace and freedom from fear '' and aponia `` the absence of pain '' and by living a self-sufficient life surrounded by friends .