Added some func. Wrote skeleton