Added skeleton code and started implementing the encrypt method.