Code for BA Project