added partial functions example