Adding existing code from previous project