As all spheres of human activity are affected by the interplay between social structure and individual agency , sociology has gradually expanded its focus to further subjects, such as health , medical , military and penal institutions , the Internet , environmental sociology , political economy and the role of social activity in the development of scientific knowledge .