Functional segmentation, fully working project