Added rough sketch of code