Examples of code that I have implemented in Java