added simple intervalTo and intervalFrom methods to note