Created an '_extend' utility method