Start putting together code for the full sample