Server Side code added
updated server side