Creating Contract library