Implement ex5
Implement ex5 all files