using require with own classes