Create Stock.java

example code from class