Add functions as objects

Started.
Todo: finish day 3