Building samples table. Quite messy still...