notes class and main