Codes for My Scala Class