implement core structure; implement creation of transaction, probably not working