Updated mainclass created some methods