added in basic data loading, and storing the pieces in variables