require_relative 'crud'
 
class Student
  include Crud
  attr_accessor :first_name, :last_name, :email, :username, :password
 
  def initialize(firstname, lastname, username, email, password)
    @first_name = firstname
    @last_name = lastname
    @username = username
    @email = email
    @password = password
  end
 
  def to_s
    "First name: #{@first_name}, Last name: #{@last_name}, Username: #{@username},
                  email address: #{@email}"
  end
 
end
 
mashrur = Student.new("Gektor", "Sid", "gek123", "gek@mail.com",
                      "password1")
john = Student.new("John", "Doe", "john1", "john1@mail.com",
                      "password2")
 
hashed_password = mashrur.create_hash_digest(mashrur.password)
 
puts hashed_password