Edit copy
move method of Function class to prototype