Previous code (other approaches) uploaded