Compact method completed with passing test