added wall code and comments