add const qualifier to pretect referece, add a get_boundary method so
that boundary is protected now
change the location of member/member function to prettify the code