create some logic of pen