Use using rather than register syntax in sample