created print method; need to fix random number generator