Homework ready

Writing down two functions