Added test cases and code for 'walrus'

[Importing Pull Request #11]