improve Note class