add contract class