Code for Final Year Project work