Implemented server side and client side code for Terapy feature. UI is left now