added interface for global variables
updated with interface
added some printing methods