added new examples with errors
added method declarations examples