Basics of sample preparation and analysis