Sample name in pattern

Fix for issue #5.