Calculating height by measuring shadows