Added code snippet

Yet to resolve errors