Changed both the classes. Now, nothing is static.