completed code 0.1
function for checking behaviour incomplete.