A Toy Model approximating the JVM architecture