First code implementation