added testing, changed methods to return outputs over printing it