new function added to blog class