Added classes for using the functions in java