Modelling the variability of 1ES1218+30.4