Creating classes and constructors and gui