Adding Ryo's Java code for inspiration
deleted Rplots.pdf