Integrated the backend code. UI is pending. 
Testing the backend is pending.