update name of df to capital, review encoding instructions