Make spam method as class methods