Added pahttern class