Created a new preview code and updated the last function

Created a new preview code and updated the "last" function, the last one
created an error.