Refactor of Bytes class