notes i took while solving a problem in j