Working code added