This is the first task of the mlpractice package.
You should fill in the gaps in the given function templates.