Developmental understanding of adolescence and middle age