implemented alternative syntax to extend