added Reg class decl
make body() public, added main()