Completed ex 1.3 (depth method)