Adding custom extend method