I want to create a new intent/activity when the user clicks on a cardview respectively and i was wondering how does one do it in kotlin. i noticed most tutorials are in java and i'm a student who did not learn java.

```
package com.example.ttshfypj.adapters

import androidx.fragment.app.Fragment
import android.view.View
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.example.ttshfypj.data_class.medications
import android.widget.ImageView
import android.widget.TextView
import com.example.ttshfypj.R

import com.squareup.picasso.Picasso
import kotlinx.android.synthetic.main.list_medication.view.*

class medicationAdapter (val medicationlist: ArrayList<medications>) : RecyclerView.Adapter<medicationAdapter.ViewHolder>() {

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
        val v = LayoutInflater.from(parent.context).inflate(R.layout.list_medication, parent, false)
        return ViewHolder(v)
    }

    override fun getItemCount(): Int {
        return medicationlist.size
    }

    override fun onBindViewHolder(holder: ViewHolder, position: Int) {
        val medicationgroup: medications = medicationlist[position]
        holder?.medicationnamevar?.text = medicationgroup.medicineN
        holder?.medicationschedulevar?.text = medicationgroup.MedicineTime
        val imagemedicine = holder?.itemView?.medicationimageview
        Picasso.get().load(medicationgroup.MedicineImage).into(imagemedicine)

    }
    class ViewHolder(itemView: View) :RecyclerView.ViewHolder(itemView) {
        val medicationnamevar = itemView.findViewById(R.id.medicationname) as TextView
        val medicationschedulevar = itemView.findViewById(R.id.medicationschedule) as TextView
    }

}

```