Code devoloped during Pooi classes