Created user class and create user function