added some more functions to design, started writing pseudo-code