Added convience functions for creating shared and unique ptrs