Guarding Hanna (Scala Translation)