Initial commit with java code for strategy pattern