add recursive function && add print/println statmements