1st method will be very much helpful