added method diagram