Samuel Smith, Pennsylvania Representative