Create purchase.java