made the functions and startting to test it