added mosaic code
updated to new latex formatting