Loading and preprocessing the data