converted the original activity to scala because fuck yeah