Change print result feature to method