I want to know if there is any way to do this without using a package I don't want dependency on package