added utility methods getMessage() nad size()