writing beans module