Add function class

Create Function.java class to implements the share and contact feature