Code for project and result: