@pradeeban this should be OO the methods should be part of an object