completed assignment

Wrote functions and completed assignmnet
Final Submission