Added more theoretical code