add new encryption method for homework 5
add updated code for homework 6