My CS440 and PSYC 489 neural network code