Modelling AGB distribution