Codes writed in class structure