code pratice from g4g peak element