broke apart factory and decorator from note class