more preparing of code into classes and gets keysig value