add samples file
fix sample function! (final!)