Fixed deprecated syntax
Attr accesible added
Merge pull request #1 from Andrew8xx8/master

Using of deprecated method removed