Updated constructor to use const&