Adding a static method to fetch all classes